﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/Site.Master" AutoEventWireup="true" CodeBehind="Platos.aspx.cs" Inherits="new_Seminario.Platos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Platos</h2>
    <p>

        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            DataObjectTypeName="DAO.Model.Plato" DeleteMethod="Delete" InsertMethod="Add" 
            SelectMethod="All" TypeName="DAO.Bussiness.Repository.PlatoRepository" 
            UpdateMethod="Actualizar" ConflictDetection="CompareAllValues" >
            </asp:ObjectDataSource>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" 
            GridLines="None" ShowFooter="True">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="Id_Alimento" HeaderText="Id_Alimento" 
                    SortExpression="Id_Alimento" Visible="False" />
                <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" 
                    SortExpression="Descripcion" />
                <asp:BoundField DataField="Tamanio" HeaderText="Tamanio" 
                    SortExpression="Tamanio" />
                <asp:BoundField DataField="Valor" HeaderText="Valor" SortExpression="Valor" />
                <asp:BoundField DataField="Tiempo_Elaboracion" HeaderText="Tiempo Elaboracion" 
                    SortExpression="Tiempo_Elaboracion" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </p>
    <p>&nbsp;</p>

</asp:Content>
